var express = require('express');
var router = express.Router();

router.get('/', (req, res) => {
  res.send('login');
})

//登录
router.post('/', (req, res,next) => {
  if(!req.query.username) return res.sendResult(null,400,'用户名不能为空');
  if(!req.query.password) return res.sendResult(null,400,'密码不能为空');
  
})

module.exports = router